/*
 * @Copyright: 2017 www.yyfax.com Inc. All rights reserved.
 */
package com.yyfax.pay.order.model.to.payin;

import javax.validation.constraints.NotNull;

import com.yyfax.pay.common.model.to.YYPayParams;

/**
 * 订单查询请求参数
 * 
 * @author maojian
 * @date 2017-05-3 13:56:44
 * @since v1.0.0
 */
@SuppressWarnings("serial")
public class QueryPayinOrderParams extends YYPayParams {
	@NotNull(message="serverIp不能为空")
	private String serverIp;
	@NotNull(message="merchantCode不能为空")
	private String merchantCode; // 商户编号
	@NotNull(message="userId不能为空")
	private String userId; // 商户用户ID
	@NotNull(message="orderId不能为空")
	private String orderId; // 商户订单号

	public String getServerIp() {
		return serverIp;
	}

	public void setServerIp(String serverIp) {
		this.serverIp = serverIp;
	}

	public String getMerchantCode() {
		return merchantCode;
	}

	public void setMerchantCode(String merchantCode) {
		this.merchantCode = merchantCode;
	}

	public String getUserId() {
		return userId;
	}

	public void setUserId(String userId) {
		this.userId = userId;
	}

	public String getOrderId() {
		return orderId;
	}

	public void setOrderId(String orderId) {
		this.orderId = orderId;
	}

	@Override
	public boolean validate() throws Exception {
		return true;
	}

	@Override
	public String[] signFields() {
		return new String[] { "serverIp", "merchantCode", "userId", "orderId" };
	}
}
